<template>
  <div>
    <router-link to="/test2">router 前往  /test2  首页</router-link>
    <el-button>普通按钮</el-button>
    这里是 test 页面
    <hr>
  </div>

</template>

<script >
import { useIndexStore } from '@/pinia-store'
import { useBasicData } from '@/pinia-store'
export default {
  props: {
    fetchData: {
      type: Object,
      default: () => ({})
    }
  },
  setup(props, {attrs}){

    const indexStore = useIndexStore()

    const indexData = indexStore.data

    if( __isBrowser__ ){
      console.log('test  客户端 setup 执行')
    }

    const a = useBasicData()

    console.log('a', a, a.data)

    return {
      indexData
    }
  }
}

</script>
